class Person {
  String name = '张三';
  int age = 23;

  void getInfo() {
    print('${this.name} -------- ${this.age}');
  }
}

void main() {
  var p = new Person();
  print(p.name);
  p.getInfo();
}
